/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.bs.Beans;

import java.io.Serializable;
import java.math.BigDecimal;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author Bone
 */
@Entity
@Table(name = "ponto_parametro")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "PontoParametro.findAll", query = "SELECT p FROM PontoParametro p")})
public class PontoParametro implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(nullable = false)
    private Integer id;
    @Column(name = "MES_ANO", length = 7)
    private String mesAno;
    @Column(name = "DIA_INICIAL_APURACAO")
    private Integer diaInicialApuracao;
    @Column(name = "HORA_NOTURNA_INICIO", length = 8)
    private String horaNoturnaInicio;
    @Column(name = "HORA_NOTURNA_FIM", length = 8)
    private String horaNoturnaFim;
    @Column(name = "PERIODO_MINIMO_INTERJORNADA", length = 8)
    private String periodoMinimoInterjornada;
    // @Max(value=?)  @Min(value=?)//if you know range of your decimal fields consider using these annotations to enforce field validation
    @Column(name = "PERCENTUAL_HE_DIURNA", precision = 18, scale = 6)
    private BigDecimal percentualHeDiurna;
    @Column(name = "PERCENTUAL_HE_NOTURNA", precision = 18, scale = 6)
    private BigDecimal percentualHeNoturna;
    @Column(name = "DURACAO_HORA_NOTURNA", length = 8)
    private String duracaoHoraNoturna;
    @JoinColumn(name = "ID_EMPRESA", referencedColumnName = "ID", nullable = false)
    @ManyToOne(optional = false)
    private Empresa idEmpresa;

    public PontoParametro() {
    }

    public PontoParametro(Integer id) {
        this.id = id;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getMesAno() {
        return mesAno;
    }

    public void setMesAno(String mesAno) {
        this.mesAno = mesAno;
    }

    public Integer getDiaInicialApuracao() {
        return diaInicialApuracao;
    }

    public void setDiaInicialApuracao(Integer diaInicialApuracao) {
        this.diaInicialApuracao = diaInicialApuracao;
    }

    public String getHoraNoturnaInicio() {
        return horaNoturnaInicio;
    }

    public void setHoraNoturnaInicio(String horaNoturnaInicio) {
        this.horaNoturnaInicio = horaNoturnaInicio;
    }

    public String getHoraNoturnaFim() {
        return horaNoturnaFim;
    }

    public void setHoraNoturnaFim(String horaNoturnaFim) {
        this.horaNoturnaFim = horaNoturnaFim;
    }

    public String getPeriodoMinimoInterjornada() {
        return periodoMinimoInterjornada;
    }

    public void setPeriodoMinimoInterjornada(String periodoMinimoInterjornada) {
        this.periodoMinimoInterjornada = periodoMinimoInterjornada;
    }

    public BigDecimal getPercentualHeDiurna() {
        return percentualHeDiurna;
    }

    public void setPercentualHeDiurna(BigDecimal percentualHeDiurna) {
        this.percentualHeDiurna = percentualHeDiurna;
    }

    public BigDecimal getPercentualHeNoturna() {
        return percentualHeNoturna;
    }

    public void setPercentualHeNoturna(BigDecimal percentualHeNoturna) {
        this.percentualHeNoturna = percentualHeNoturna;
    }

    public String getDuracaoHoraNoturna() {
        return duracaoHoraNoturna;
    }

    public void setDuracaoHoraNoturna(String duracaoHoraNoturna) {
        this.duracaoHoraNoturna = duracaoHoraNoturna;
    }

    public Empresa getIdEmpresa() {
        return idEmpresa;
    }

    public void setIdEmpresa(Empresa idEmpresa) {
        this.idEmpresa = idEmpresa;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (id != null ? id.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof PontoParametro)) {
            return false;
        }
        PontoParametro other = (PontoParametro) object;
        if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.bs.Beans.PontoParametro[ id=" + id + " ]";
    }
    
}
